package org.lib.webvalidation.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Range;

import lombok.Data;

/**
 * Hello4DTO
 * @author ben
 * @date 2021-09-26 10:24:00 CST
 */
@Data
public class Hello4DTO {

	@NotBlank(message="name不能为空")
	@Size(max=100, message="name长度不能超过100")
	private String name;
	
	@NotNull(message="age不能为null")
	@Range(min=0, max=150, message="age范围：[0,150]")
	private Integer age;
	
}
